import mypackage.Role;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Role r1=new Role("达摩",100);
        Role r2=new Role("狂铁",100);
        int huihe=1;
        while (true){
            r1.attack(r2);
            if(r2.getBlood()==0){
                System.out.println(r1.getName()+"用了"+huihe+"个回合击败了"+r2.getName());
                break;
            }
            ++huihe;
            r2.attack(r1);
            if(r1.getBlood()==0){
                System.out.println(r2.getName()+"用了"+huihe+"个回合击败了"+r1.getName());
                break;
            }
            ++huihe;
        }
        
    }
}